<?php
namespace Home\Model;
use \Frame\Libs\BaseModel;

//定义最终的首页模型
final class IndexModel extends BaseModel {

    public function fetchAll() {
        $sql="select * from `users` order by `id` desc";
        return $this->pdo->fetchAll($sql);
    }
}